/*
 * Eeedit
 *
 * Copyright (c) 2007 by The Eeedit Project.
 *
 * Released under the GNU General Public License
 * with ABSOLUTELY NO WARRANTY.
 *
 * See the file COPYING for more information.
 */
package org.eeedit.vimplugin.utils;

import org.eclipse.swt.widgets.Composite;

/**
 * Simple class to provide an abstracted interface for getting
 * a SWT Widgets HWND/Wid/Handle.
 * 
 * @author David Terei
 * @since 19/07/07
 */
public class WidHandler {

	/**
     * Block instantiation.
     */
	private WidHandler() {
		// do nothing
	}

	/**
	 * Get the Window ID/Handle of the SWT Widget given.
	 * 
	 * @param parent The SWT Widget.
	 * @return The handle of the SWT Widget.
	 */
	public static int getWID(Composite parent) {
		// Win32
		return parent.handle;

		// GTK2
		//return parent.embeddedHandle;
	}
}
